/**
 * 
 */

HeaderPortlet = Class.extend({
	init:function() {
		this.name = "HeaderPortlet";
	},
	
	requestForResource: function(resourceName){
		var app = SingletonFactory.getInstance(Application);
		var rm = app.getResourceManager();
		return rm.requestForResource(this.name,resourceName);
	},
	
	run: function() {
		this.getPortletPlaceholder().drawToCanvas(this.render());
		$("#"+this.placeholder.canvas.id).css("overflow","visible");
		$("#"+this.placeholder.canvas.id).css("float","left");
		$("#"+this.placeholder.canvas.id).css("vertical-allign","bottom");
	}
}).implement(RenderInterface).implement(PortletInterface);